package topday1_9.demo3;

/**
 * @Auther:小陈的Java
 */
public class Father {
    public Father(){
        System.out.println("父类构造器");
    }
    public void have(){
        System.out.println("我有一头小毛驴，我从来也不骑");
    }
}
class Son extends  Father{
    public Son(){
        super();
        System.out.println("子类构造器");
    }
    public void have(){
        System.out.println("驴肉火烧，驴肉宴");
    }
    public static void main(String[] args) {
        Son son = new Son();
        son.have();
    }
}
